home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-09-24 | 1.1 KB | 34 lines | [TEXT/ttxt] |
- Find File v1.0
- by Michael J. Pawlowky
- September 24, 1994
-
- Given a partial name find file will return the complete path to all matching files and/or folders.
-
- The parameter is a list of either 2,3 or 5 fields.
-
- usage: Find File {vRefNum, "SearchString", [FileAttributes], [LoDateSecs, HiDateSecs]}
-
- - vRefNum can be found using the VolInfo osax
-
- - Search String is a partial or full name for the file or folder that you are searhing for.
-
- - FileAttributes is an integer between 0 and 2.
- 0 = files and folders
- 1 = files only
- 2 = folders only
- (any other value will default to 0)
-
- - Hi and Lo DateSecs are dates given in the format of
- number of secs since January 1st, 1904.
- You can use the GetDateSecs to get the current date and then
- currentDate - days *24*60*60 to figure out the LoDateSecs
-
- Square brackets [] in usage mean optional. However if you want to use the searh for
- files/folders with creation date (Hi/LoDateSecs) you must include the FileAttributes field.
-
- Any comments can be sent to me via:
-
- caronch@ere.umontreal.ca
-
- P.S. Please feel free to distribute this addition at will.
-